﻿<%@ Control Language="C#" ClassName="PatMenuFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataIdMenuPadre" runat="server" Text="Id Menu Padre:" AssociatedControlID="dataIdMenuPadre" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataIdMenuPadre" DataSourceID="IdMenuPadrePatMenuDataSource" DataTextField="Descripcion" DataValueField="IdMenu" SelectedValue='<%# Bind("IdMenuPadre") %>' AppendNullItem="true" Required="false" NullItemText="< Seleccione ...>" />
					<data:PatMenuDataSource ID="IdMenuPadrePatMenuDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataDescripcion" runat="server" Text="Descripcion:" AssociatedControlID="dataDescripcion" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataDescripcion" Text='<%# Bind("Descripcion") %>' MaxLength="100"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataDescripcion" runat="server" Display="Dynamic" ControlToValidate="dataDescripcion" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataUrl" runat="server" Text="Url:" AssociatedControlID="dataUrl" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataUrl" Text='<%# Bind("Url") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataUrlHelp" runat="server" Text="Url Help:" AssociatedControlID="dataUrlHelp" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataUrlHelp" Text='<%# Bind("UrlHelp") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataUrlHelp" runat="server" Display="Dynamic" ControlToValidate="dataUrlHelp" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataActivo" runat="server" Text="Activo:" AssociatedControlID="dataActivo" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataActivo" SelectedValue='<%# Bind("Activo") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Si" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


